from django.shortcuts import render

from .import nan





def index(request):

    chipo = nan.ChipotleNan()

    info = chipo.Make_a_table_of_the_types_of_the_restaurant()[:30]

    money = chipo.the_most_number_shop()

    shop_name = chipo.The_shop_sold__period()

    method = chipo.Chicken_Bowl_ingredients()

    all = chipo.total_price()

    context = {
        'money':money,
        'shop_name':shop_name,
        'method':method,
        'all':all,
        'info':info
    }

    return render(request, 'rem/index.html',context)

def table(request):

    chipo = nan.ChipotleNan()

    info = chipo.Make_a_table_of_the_types_of_the_restaurant()

    context = {
        'table':info,
    }

    return render(request,'rem/buttons.html')







